class RollDefect < ActiveRecord::Base
  belongs_to  :roll
  belongs_to  :defect_type
  
  def before_create
    self.date = Time.new
  end
  
end
